package module;

import java.io.Serializable;
import java.util.Arrays;

public class Student implements Serializable {

    private static final long serialVersionUID =-4534586253830574722L;


    private String name;
    private int num;
    private int age;
    private String scores;
    private String account;
    private String password;
    private int count = 0;

    public Student() {
    }

    /**
     * description:
     *
     * @param name 姓名
     * @param num  学号
     * @param age  年龄
     * @return void
     */
    public Student(String name, int num, int age) {
        setName(name);
        setNum(num);
        setAge(age);
    }

    public Student(String account, String password) {
        this.account = account;
        this.password = password;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getScores() {
        return scores;
    }

    public void setScores(String score) {
        this.scores = score;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    /**
     * description: toString重写
     *
     * @return java.lang.String
     */
    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", num=" + num +
                ", age=" + age +
                ", scores=" + scores +
                ", account='" + account + '\'' +
                ", password='" + password + '\'' +
                ", count=" + count +
                '}';
    }
}
